﻿using Radius.NET.Application.Const;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Radius.NET.Application.Entity
{
    [SugarTable(null,"业务单据编码流水")]
    public class AppSerialNumber: EntityTenant
    {
        /// <summary>
        /// 编码
        /// </summary>
        [SugarColumn(ColumnDescription ="编码",IsNullable =true)]
        public string Code { set; get; }

        /// <summary>
        /// 描述
        /// </summary>
        [SugarColumn(ColumnDescription = "描述", IsNullable =true)]
        public string Name { set; get; }

        /// <summary>
        /// 前缀
        /// </summary>
        [SugarColumn(ColumnDescription = "前缀", IsNullable = true)]
        public string Prefix { set; get; }
        
        /// <summary>
        /// 单据编码格式
        /// </summary>
        [SugarColumn(ColumnDescription = "单据编码格式", IsNullable = true)]
        public string Format { set; get; }

        /// <summary>
        /// 流水号位数
        /// </summary>
        [SugarColumn(ColumnDescription = "流水号位数", IsNullable = true)]
        public int? Digit { get; set; }

        /// <summary>
        /// 流水号
        /// </summary>
        [SugarColumn(ColumnDescription = "流水号", IsNullable = true)]
        public int? Mantissa { get; set; }

        /// <summary>
        /// 是否默认
        /// </summary>
        [SugarColumn(ColumnDescription = "是否默认", IsNullable = true)]
        public YesNoEnum? IsDefault { get; set; }

    }
}
